package com.propertise.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/log")
@RestController
public class LoggerController {
    @RequestMapping("/printLog")
    public String printLog() {
        // 自动生成 log 日志对象
        log.error("");
        log.warn("");
        log.info("");
        // 下面两个日志级别太低不会打印
        log.debug("");
        log.trace("");
        return "success";
    }

}
